package com.bby.user.bean;

import com.bby.common.model.UserGroup;
import lombok.Data;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.util.ArrayList;
import java.util.List;
@Data
@ToString
public class UserGroupVO {
    @Data
    @ToString
    public static class UserGroupContentVO{
        public String id;
        /**
         * 只用来显示
         */
        public String name;

        public UserGroupContentVO(String id, String name) {
            this.id = id;
            this.name = name;
        }
    }
    public String id;
    /**
     * 只用来显示
     */
    public String name;
    public List<UserGroupContentVO> content;

    public UserGroupVO(UserGroup userGroup) {
        id=userGroup.id;
        name=userGroup.name;
    }
}
